package cn.kmsoft.common.exception;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 自定义异常消息
 *
 * @author
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ExceptionMsg {
    /**
     * 参数参数
     */
    CLIENT_ERROR(400, "client error"),

    /**
     * 服务器错误
     */
    SYSTEM_ERROR(500, "system error");

    private int code;
    private String msg;

    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }

    ExceptionMsg(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
